<include file="Public/min-header" />
<link href="__PUBLIC__/plugins/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
<script src="__PUBLIC__/plugins/daterangepicker/moment.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
<div class="wrapper">

    <include file="Public/breadcrumb" />
    <section class="content">
        <div class="container-fluid">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title"><i class="fa fa-list"></i> 会计师财务明细</h3>
                </div>
                <div class="panel-body">

                  <form action="{:U('finance/export')}" id="search-form2" class="navbar-form form-inline" method="post">
                            <div class="navbar navbar-default">

                                <div class="form-group">
                                    <label class="control-label" for="input-order-id">会计师名称</label>
                                    <div class="input-group">
                                        <input type="text" name="username" placeholder="会计师名称" id="input-order-id" class="input-sm">
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="control-label" for="input-order-id">会计师手机</label>
                                    <div class="input-group">
                                        <input type="text" value="{$mobile}" name="mobile" placeholder="会计师手机" id="input-order-id" class="input-sm">
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="control-label" for="input-order-id">类型选择</label>
                                    <div class="input-group">
                                        <select name="type" class="form-control">
                                            <option value="">请选择</option>
                                            <volist name="type" id="vo">
                                                <if condition="$key neq 4">
                                                <option value="{$key}" >{$vo}</option>
                                                </if>
                                            </volist>
                                        </select>
                                    </div>
                                </div>


                                <div class="form-group">
                                <a href="javascript:;" onclick="ajaxGetTable('search-form2', 1)" id="button-filter search-order" class="btn btn-primary"><i class="fa fa-search"></i> 筛选</a>
                            </div>



                    </div>

                    <div id="ajax_return">
                    </div>
                    </form>
                </div>
            </div>
        </div>
    </section>
</div>
<script>
$(document).ready(function() {
    ajaxGetTable('search-form2', 1);

});

// ajax 抓取页面
function ajaxGetTable(tab, page) {
    cur_page = page;
    $.ajax({
        type: "POST",
        url: "/index.php/Admin/finance/ajax_detail/p/" + page,
        data: $('#' + tab).serialize(),
        success: function(data) {
            $("#ajax_return").html(data);
        }
    });
}

// 点击排序
function sort(field) {
    $("input[name='order_by']").val(field);
    var v = $("input[name='sort']").val() == 'desc' ? 'asc' : 'desc';
    $("input[name='sort']").val(v);
    ajaxGetTable('search-form2', cur_page);
}
</script>
</body>

</html>
